package com.example.model;

import lombok.Data;

/**
 * Description:
 * User: 阿宾
 * Date: 2025-04-22
 * Time: 18:22
 */
@Data
public class PageRequest {
    private Integer currentPage = 1; //当前页码
    private Integer pageSize = 10; //每页展示条数


    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }
}
